From e43f0317699669f4e02f651f6c3c90d6fa6f5808 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 29 Nov 2017 19:31:54 +0100 Subject: [PATCH] broadway: Add div for container nodes We need this so that all nodes have divs, otherwise diffing is going to be very hard. --- gdk/broadway/broadway.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js index acbd80d236..0f85c7aaf4 100644 --- a/gdk/broadway/broadway.js +++ b/gdk/broadway/broadway.js @@ -459,10 +459,12 @@ SwapNodes.prototype.handle_node = function(parent, offset_x, offset_y) case 1: // CONTAINER { + var div = document.createElement('div'); var len = this.decode_uint32(); for (var i = 0; i < len; i++) { - this.handle_node(parent, offset_x, offset_y); + this.handle_node(div, offset_x, offset_y); } + parent.appendChild(div); } break; -- 2.30.2